// Package dimensionreductionblow 降维打击
package dimensionreductionblow

import (
	"fmt"
)

/*
var data = [{
  "province": "浙江",
  "city": "杭州",
  "name": "西湖"
}, {
  "province": "四川",
  "city": "成都",
  "name": "锦里"
}, {
  "province": "四川",
  "city": "成都",
  "name": "方所"
}, {
  "province": "四川",
  "city": "阿坝",
  "name": "九寨沟"
}]
*/

// CityItems type
type CityItems struct {
	Value   string
	Chidren []CityItems
}

func dimension() {
	c := CityItems{}
	c.Value = "四川"
	c.Chidren = []CityItems{
		{
			Value: "成都",
			Chidren: []CityItems{
				{Value: "锦里"},
				{Value: "方所"},
				{Value: "九寨沟"},
			},
		},
	}

	fmt.Println(c)

}
